package net.dengzixu.java.homework.period16.package2;

import net.dengzixu.java.homework.period16.package1.RightTriangle;

/**
 * @author Deng Zixu <admin@dengzixu.com>
 */
public class RightTriangleTest {
    public static void main(String[] args) {
        RightTriangle rightTriangle = new RightTriangle(3, 4);

        System.out.println("三角形面积为: " + rightTriangle.findArea());
        System.out.println("三角形斜边为: " + rightTriangle.findHypotenuse());

        // 方法一
        rightTriangle.print("奥利给！");

        // 方法二
        RightTriangle.print("奥利给！");
    }
}
